<?php // no direct access
defined('_JEXEC') or die('Restricted access'); ?>
<form action="index.php" method="post" name="userform"
	autocomplete="off">
<div class="componentheading"><?php echo JText::_( 'Edit Your Details' ); ?>
</div>
<table cellpadding="5" cellspacing="0" border="0" width="100%">
	<tr>
		<td><label for="username"> <?php echo JText::_( 'User Name' ); ?>: </label>
		</td>
		<td><span><?php echo $this->user->get('username');?></span></td>
	</tr>
	<tr>
		<td width="120"><label for="name"> <?php echo JText::_( 'Your Name' ); ?>:
		</label></td>
		<td><input class="inputbox" type="text" id="name" name="name"
			value="<?php echo $this->user->get('name');?>" size="40" /></td>
	</tr>
	<tr>
		<td><label for="email"> <?php echo JText::_( 'email' ); ?>: </label></td>
		<td><input class="inputbox" type="text" id="email" name="email"
			value="<?php echo $this->user->get('email');?>" size="40" /></td>
	</tr>
	<?php if($this->user->get('password')) : ?>
	<tr>
		<td><label for="password"> <?php echo JText::_( 'Password' ); ?>: </label>
		</td>
		<td><input class="inputbox" type="password" id="password"
			name="password" value="" size="40" /></td>
	</tr>
	<tr>
		<td><label for="password2"> <?php echo JText::_( 'Verify Password' ); ?>:
		</label></td>
		<td><input class="inputbox" type="password" id="password2"
			name="password2" size="40" /></td>
	</tr>
	<?php endif; ?>
</table>
	<?php if(isset($this->params)) :  echo $this->params->render( 'params' ); endif; ?>
<input type="submit" value="<?php echo JText::_('Save'); ?>"
	class="button" /> <input type="hidden" name="username"
	value="<?php echo $this->user->get('username');?>" /> <input
	type="hidden" name="id" value="<?php echo $this->user->get('id');?>" />
<input type="hidden" name="gid"
	value="<?php echo $this->user->get('gid');?>" /> <input type="hidden"
	name="option" value="com_user" /> <input type="hidden" name="task"
	value="save" /> <?php echo JHTML::_( 'form.token' ); ?></form>
